//
// Mutex.hpp for  in /home/lund/Projets/plazza
// 
// Made by florian dewulf
// Login   <dewulf_f@epitech.net>
// 
// Started on  Sun Apr 14 23:39:01 2013 florian dewulf
// Last update Mon Apr 15 20:11:07 2013 florian dewulf
//

#ifndef		MUTEX_HPP__
# define	MUTEX_HPP__

#include	<pthread.h>

class		Mutex
{
public:
  Mutex();
  virtual	~Mutex();
  void		lock();
  void		unlock();

public: //getter & setter
  pthread_mutex_t	getMutex() const;
  bool			getError() const;
  void			setMutex(pthread_mutex_t &);
  void			setError(bool);

private:
  bool			_error;
  pthread_mutex_t	_mutex;
};

#endif
